apt install rinetd -y
echo -e "rinetd 安装成功"
rm -rf /etc/rinetd.conf
touch /etc/rinetd.conf
echo -e "0.0.0.0 31400 10.8.0.2 31400
         0.0.0.0 31401 10.8.0.2 31401
         0.0.0.0 825 10.8.0.2 825
         0.0.0.0 31402 10.8.0.2 31402
         0.0.0.0 31403 10.8.0.2 31403
         0.0.0.0 31404 10.8.0.2 31404
         0.0.0.0 31405 10.8.0.2 31405
         0.0.0.0 31406 10.8.0.2 31406
         0.0.0.0 31407 10.8.0.2 31407
         0.0.0.0 31408 10.8.0.2 31408
         0.0.0.0 31409 10.8.0.2 31409
         0.0.0.0 31410 10.8.0.2 31410" >> /etc/rinetd.conf

rinetd -c /etc/rinetd.conf